package com.hz.blog.service;

import com.hz.blog.model.entity.BlogEntity;

import java.util.List;

public interface BlogService {

    int addBlog(String title, String content, Integer userId, boolean isAnonymous);

    BlogEntity viewBlog(Integer id);

    int delBolg(Integer id);

    int editBlog(Integer id, String title, String content);

    List<BlogEntity> allBlogs();

    List<BlogEntity> myBlogs(Integer userId);

}
